<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:ds="http://deltaset.org/deltaset-faces">

    <!--c:if test="#{empty title}">
        <c:set var="hideTitleStyle" value="display:none"/>
        <c:set var="topAdjustStype" value="ui-corner-top"/>
    </c:if-->
    <h:panelGroup  rendered="#{pageHelper.pageInfo.hasItems}">
        <div class="ds-grid ui-widget ui-corner-all">
            <c:if test="#{'bottom' == showPager}">
                <div class="ds-grid-header ui-widget-header ui-corner-top">#{title}</div>
            </c:if>
            <c:if test="#{'top' == showPager||'both'==showPager}">
                <ui:include src="pager-group.xhtml">
                    <ui:param name="pageHelper" value="#{pageHelper}"/>
                    <ui:param name="pageParamName" value="#{pageParamName}"/>
                    <ui:param name="parentIdParamName" value="#{parentIdParamName}"/>
                    <ui:param name="parentId" value="#{parentId}"/>
                    <ui:param name="ajustStyle" value="ui-corner-top"/>
                    <ui:param name="ajaxMode" value="#{ajaxMode}"/>
                    <ui:param name="infoMode" value="#{infoMode}"/>
                    <ui:param name="msgPrevious" value="#{msgPrevious}"/>
                    <ui:param name="msgNext" value="#{msgNext}"/>
                    <ui:param name="msgPageOf" value="#{msgPageOf}"/>
                    <ui:param name="msgItemOf" value="#{msgItemOf}"/>
                </ui:include>
            </c:if>
            <ui:insert/>
            <c:if test="#{'bottom' == showPager||'both'==showPager}">
                <ui:include src="pager-group.xhtml">
                    <ui:param name="pageHelper" value="#{pageHelper}"/>
                    <ui:param name="pageParamName" value="#{pageParamName}"/>
                    <ui:param name="parentIdParamName" value="#{parentIdParamName}"/>
                    <ui:param name="parentId" value="#{parentId}"/>
                    <ui:param name="ajustStyle" value="ui-corner-bottom"/>
                    <ui:param name="ajaxMode" value="#{ajaxMode}"/>
                    <ui:param name="infoMode" value="#{infoMode}"/>
                    <ui:param name="msgPrevious" value="#{msgPrevious}"/>
                    <ui:param name="msgNext" value="#{msgNext}"/>
                    <ui:param name="msgPageOf" value="#{msgPageOf}"/>
                    <ui:param name="msgItemOf" value="#{msgItemOf}"/>                    
                </ui:include>
            </c:if>
            <c:if test="#{'top' == showPager}">
                <div class="ds-grid-header ui-widget-header ui-corner-bottom">#{title}</div>
            </c:if>
        </div>
    </h:panelGroup>
    <ds:noData rendered="#{not pageHelper.pageInfo.hasItems}" title="&#160;" message="#{msgNoRecords}"/>
</ui:component>